// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_BPT_APPLICATION_ITEM
// * CreateDate    : 2012-1-4 11:58:22
// * Creater       : CodeSmith
// * LastChangeDate: 2012-1-4 11:58:22
// * LastChanger   : 2012-1-4 11:58:22
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class BptApplicationItemTable : TableInfo
    {
        public const string C_TableName = "BPT_APPLICATION_ITEM";

        public const string C_APPLICATION_ITEM_ID = "APPLICATION_ITEM_ID";
        public const string C_APPLICATION_ID = "APPLICATION_ID";
        public const string C_PLAN_APPLICATION_ITEM_ID = "PLAN_APPLICATION_ITEM_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_DELIVERY_DATE = "DELIVERY_DATE";
        public const string C_REMARK = "REMARK";
        public const string C_PRODUCT_SPEC_IN = "PRODUCT_SPEC_IN";
        public const string C_PRODUCT_SPEC_OUT = "PRODUCT_SPEC_OUT";
        public const string C_MATERIAL = "MATERIAL";
        public const string C_DIAMETER_OUT = "DIAMETER_OUT";
        public const string C_DIAMETER_IN = "DIAMETER_IN";
        public const string C_LENGTH = "LENGTH";
        public const string C_UNIT = "UNIT";
        public const string C_REP_REGISTER_ITEM_ID = "REP_REGISTER_ITEM_ID";

        public BptApplicationItemTable()
        {
            _tableName = "BPT_APPLICATION_ITEM";
        }

        protected static BptApplicationItemTable _current;
        public static BptApplicationItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new BptApplicationItemTable();

            _current.Add(C_APPLICATION_ITEM_ID, new ColumnInfo(C_APPLICATION_ITEM_ID, "ApplicationItemId", true, typeof(string)));
            _current.Add(C_APPLICATION_ID, new ColumnInfo(C_APPLICATION_ID, "ApplicationId", false, typeof(string)));
            _current.Add(C_PLAN_APPLICATION_ITEM_ID, new ColumnInfo(C_PLAN_APPLICATION_ITEM_ID, "PlanApplicationItemId", false, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_DELIVERY_DATE, new ColumnInfo(C_DELIVERY_DATE, "DeliveryDate", false, typeof(DateTime)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_PRODUCT_SPEC_IN, new ColumnInfo(C_PRODUCT_SPEC_IN, "ProductSpecIn", false, typeof(string)));
            _current.Add(C_PRODUCT_SPEC_OUT, new ColumnInfo(C_PRODUCT_SPEC_OUT, "ProductSpecOut", false, typeof(string)));
            _current.Add(C_MATERIAL, new ColumnInfo(C_MATERIAL, "Material", false, typeof(string)));
            _current.Add(C_DIAMETER_OUT, new ColumnInfo(C_DIAMETER_OUT, "DiameterOut", false, typeof(decimal)));
            _current.Add(C_DIAMETER_IN, new ColumnInfo(C_DIAMETER_IN, "DiameterIn", false, typeof(decimal)));
            _current.Add(C_LENGTH, new ColumnInfo(C_LENGTH, "Length", false, typeof(decimal)));
            _current.Add(C_UNIT, new ColumnInfo(C_UNIT, "Unit", false, typeof(string)));
            _current.Add(C_REP_REGISTER_ITEM_ID, new ColumnInfo(C_REP_REGISTER_ITEM_ID, "RepRegisterItemId", false, typeof(string)));

        }

        public ColumnInfo APPLICATION_ITEM_ID
        {
            get { return this[C_APPLICATION_ITEM_ID]; }
        }

        public ColumnInfo APPLICATION_ID
        {
            get { return this[C_APPLICATION_ID]; }
        }

        public ColumnInfo PLAN_APPLICATION_ITEM_ID
        {
            get { return this[C_PLAN_APPLICATION_ITEM_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo DELIVERY_DATE
        {
            get { return this[C_DELIVERY_DATE]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo PRODUCT_SPEC_IN
        {
            get { return this[C_PRODUCT_SPEC_IN]; }
        }

        public ColumnInfo PRODUCT_SPEC_OUT
        {
            get { return this[C_PRODUCT_SPEC_OUT]; }
        }

        public ColumnInfo MATERIAL
        {
            get { return this[C_MATERIAL]; }
        }

        public ColumnInfo DIAMETER_OUT
        {
            get { return this[C_DIAMETER_OUT]; }
        }

        public ColumnInfo DIAMETER_IN
        {
            get { return this[C_DIAMETER_IN]; }
        }

        public ColumnInfo LENGTH
        {
            get { return this[C_LENGTH]; }
        }

        public ColumnInfo UNIT
        {
            get { return this[C_UNIT]; }
        }

        public ColumnInfo REP_REGISTER_ITEM_ID
        {
            get { return this[C_REP_REGISTER_ITEM_ID]; }
        }



    }
}

